derivatives chain rule and quotient rule